package com.qujia.station.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qujia.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

public class Grade extends BaseEntity

{
    private static final long serialVersionUID = 1L;

    /** 等级id */
    private Long gradeId;


    /** 等级名称*/
    private String gradeName;

    /** 成长阈值 */
    private Long gradeGrowValue;


    /** 等级编码 */
    private String gradeCode;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 油企id */
    private Long enterpriseId;


    /** 删除标志 */
    private String deleteFlag;


    /** 删除时间 */
    private Date deleteDate;



    /** 删除人 */
    private Long deleteUser;



    /** 创建时间 */
    private Date createDate;



    /** 创建人 */
    private Long createUser;

    private List<Long> enterpriseIdListForAuthor;

    public List<Long> getEnterpriseIdListForAuthor() {
        return enterpriseIdListForAuthor;
    }

    public void setEnterpriseIdListForAuthor(List<Long> enterpriseIdListForAuthor) {
        this.enterpriseIdListForAuthor = enterpriseIdListForAuthor;
    }

    public String getGradeCode() {
        return gradeCode;
    }

    public void setGradeCode(String gradeCode) {
        this.gradeCode = gradeCode;
    }

    public Date getDeleteDate() {
        return deleteDate;
    }

    public void setDeleteDate(Date deleteDate) {
        this.deleteDate = deleteDate;
    }

    public Long getDeleteUser() {
        return deleteUser;
    }

    public void setDeleteUser(Long deleteUser) {
        this.deleteUser = deleteUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Long getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Long enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public Long getGradeId() {
        return gradeId;
    }

    public void setGradeId(Long gradeId) {
        this.gradeId = gradeId;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public Long getGradeGrowValue() {
        return gradeGrowValue;
    }

    public void setGradeGrowValue(Long gradeGrowValue) {
        this.gradeGrowValue = gradeGrowValue;
    }



    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("gradeId", getGradeId())
                .append("gradeName", getGradeName())
                .append("gradeGrowValue", getGradeGrowValue())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }


}
